package com.sjzsqjy.asdtiang.mysql;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * SampleUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sample_user", catalog = "hospital")
public class SampleUser implements java.io.Serializable {

	// Fields

	private Long id;
	private Long version;
	private String sex;
	private String name;
	private String age;
	private String sampleId;
	private String sendDoctor;

	// Constructors

	/** default constructor */
	public SampleUser() {
	}

	/** minimal constructor */
	public SampleUser(Long version, String sampleId) {
		this.version = version;
		this.sampleId = sampleId;
	}

	/** full constructor */
	public SampleUser(Long version, String sex, String name, String age,
			String sampleId, String sendDoctor) {
		this.version = version;
		this.sex = sex;
		this.name = name;
		this.age = age;
		this.sampleId = sampleId;
		this.sendDoctor = sendDoctor;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "version", nullable = false)
	public Long getVersion() {
		return this.version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	@Column(name = "sex")
	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "age")
	public String getAge() {
		return this.age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	@Column(name = "sample_id", nullable = false)
	public String getSampleId() {
		return this.sampleId;
	}

	public void setSampleId(String sampleId) {
		this.sampleId = sampleId;
	}

	@Column(name = "send_doctor")
	public String getSendDoctor() {
		return this.sendDoctor;
	}

	public void setSendDoctor(String sendDoctor) {
		this.sendDoctor = sendDoctor;
	}

}